<?php

// Linking Table
class Framework_DB_Table_GalleryItem extends Framework_DB_Table_Common {

	public $tableName = 'GalleryItem';
	
	public function __construct($db) {
   		
   		// Columns
   		$this->col = array(
	   		// Primary Key 1
	        'idOwnerFile'     => array(
	              'type'  => 'integer',
	           'require'  => true
	        ),
	        // Foreign Key
	        'idFolder'    => array(
	              'type'  => 'integer',
	           'require'  => true
	        ),
	        
	        'date'        => array(
	        	 'type'   => 'integer'
	        ),
	      
	        'title'       => array(
	        	 'type'   => 'varchar',
	        	 'size'	  => 255
	        )
	        
	    );
	    
	    // Indexes
	    $this->idx = array(
	    	'idOwnerFile' => 'primary'
	    );
   		
   		parent::__construct($db);
	}
	
	
}

?>